package com.ykcloud.soa.erp.fi.service.impl;

import cn.hutool.json.JSONUtil;
import com.ykcloud.soa.erp.fi.api.service.DyTestService;
import com.ykcloud.soa.erp.fi.api.service.FiArcCortSubjectService;
import com.ykcloud.soa.erp.fi.api.service.MdmsCTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author mdl
 * @version 1.0
 * @date 2022/3/10 15:14
 */
@Service
@Slf4j
public class DyTestServiceImpl implements DyTestService {

    @Autowired
    private FiArcCortSubjectService fiArcCortSubjectService;

    @Autowired
    private MdmsCTypeService mdmsCTypeService;

    @Override
    public void test() {
        log.info("查询财务库:" + JSONUtil.toJsonStr(fiArcCortSubjectService.selectAll()));
        log.info("查询主数据库:" + JSONUtil.toJsonStr(mdmsCTypeService.selectAll()));
    }
}
